﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CMP.ERP.BLL;
using CMP.ERP.Model;
using System.Data;

namespace CMP.ERP.Admin.Controllers
{
    public class Purchase_OrderController : Controller
    {

        PorBuyBLL bll = new PorBuyBLL();
        public ActionResult Purchase_Order_Show()
        {
            return View();
        }
        //年
        public ActionResult SelYear(string start,string end)
        {
            List<PorBuy> list = bll.nian(start, end);
            return Json(list);
        }
        //月
        public ActionResult SelMonth(string start, string end)
        {
            List<PorBuy> list = bll.yue(start, end);
            return Json(list);
            
           
        }
        //日
        public ActionResult SelDay(string start, string end)
        {
            List<PorBuy> list = bll.tian(start, end);
            return Json(list);
        }
      

    }
}
